﻿namespace Microsoft.Extensions.DependencyInjection
{
    public static class IServiceCollectionExtensions
    {
        public static IServiceCollection AddIdentityServer(this IServiceCollection services, Action<IdentityServerBuilder> configure)
        {
            var builder = new IdentityServerBuilder(services);
            configure(builder);
            builder.Build();
            return services;
        }
    }
}
